/**
 * Created by Administrator on 2017/2/13.
 */
import { Component,OnInit } from '@angular/core';
import { ChecksuccService } from './chsuccess.serve';
import { Router, ActivatedRoute, Params } from '@angular/router';
@Component({
  moduleId: module.id,
  selector: 'my-success',
  templateUrl: 'chsuccess.html',
  providers:[ ChecksuccService ]
})
export class ChsuccessComponent implements OnInit{
    constructor(
      private checksuccService:ChecksuccService,
      private router: Router,
      private route: ActivatedRoute,
    ){}
    private chsucc='';
     ngOnInit(){
        this.checksuccService.grtsucc()
          .subscribe(
            res=>{this.chsucc=res;
            console.log(this.chsucc)
            },
            error =>  { console.log(error)}
          )
     }
//跳转材料详情页
  gomatrialdetial(id:number){
    this.router.navigate(['/facdit',id]);
  }
}
